package com.eportal.service;

import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.eportal.domain.CRoom;
import com.eportal.domain.RedEnvDetail;
import com.eportal.domain.RoomUser;
import com.eportal.domain.Sysopt;
import com.framework.jqgrid.JqGridPager;


public interface RedEnvService {

	List<Map<String, Object> > page(JqGridPager jqGridPager);	
	
	List<Map<String, Object> > logList(JqGridPager jqGridPager);	
	
	List<Map<String, Object> > detail(Long sid);	
	
	Map<String, Object> offMethod(Long sid, Sysopt opt) throws Exception;

	Map<String, Object> addRedEnv(Sysopt opt, String rName, BigDecimal Amount, int totalNum, int reTimes, String effectiveDate, String period1, String period2, String isAllday,
			 String isSendAll, String agentCodes, String communityIds, String buildingIds, String unitIds, String roomIds, String mainReType, String cUrl, String adPicture, String reqPreUrl);

	Map<String, Object> activeRedenv(String mainId);
	
    RedEnvDetail get(Long id);

	List<Map<String, String>> listBySql(String string);

	List<Map<String, Object>> queryBySql(String unit, String budingid);
}
